﻿
Imports osi.root.constants

Namespace constants
    Namespace default_value
        Namespace incoming
            Public Module _incoming
                Public Const max_connected As Int32 = max_int32
                Public Const max_lifetime_ms As Int64 = 24 * 60 * 60 * second_milli
            End Module
        End Namespace

        Namespace outgoing
            Public Module _outgoing
                Public Const connecting_timeout_ms As Int64 = 10 * second_milli
                Public Const max_connected As Int32 = 256
                Public Const max_lifetime_ms As Int64 = npos
            End Module
        End Namespace

        Public Module _default_value
            Public Const buff_size As Int32 = 4096
            Public Const response_timeout_ms As Int64 = 30 * second_milli
            Public Const send_rate_sec As Int32 = 1
            Public Const receive_rate_sec As Int32 = 1
            Public Const max_connecting As Int32 = 2
            Public Const no_delay As Boolean = False
            Public Const ipv4 As Boolean = True
            Public Const enable_keepalive As Boolean = True
            Public Const first_keepalive_ms As UInt32 = 8 * second_milli
            Public Const keepalive_interval_ms As UInt32 = 8 * second_milli
            Public Const zipper As String = Nothing
            Public Const encryptor As String = Nothing
        End Module
    End Namespace

    Namespace interval_ms
        Public Module _interval_ms
            Public Const watch_expiration As Int64 = 5 * second_milli
            Public Const watch_connectivity As Int64 = 15 * second_milli
            Public Const poll_read As Int64 = socket_poll_interval_ms
            Public Const answer_powerpoint_change As Int64 = 5 * second_milli
            Public Const connector_fail As Int64 = 1 * second_milli
            Public Const closer_all_poll_alive As Int64 = 5 * second_milli
            Public Const connector_check As Int64 = 100
            Public Const accepter_over_max_connecting As Int64 = 100
        End Module
    End Namespace
End Namespace